<?php
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_line.php');

// Some (random) data
$ydata = array(11,3,8,12,5,1,9,13,5,7);
$ydata2 = array(1,19,15,7,22,14,5,9,21,13);

// Setup the graph
$graph = new Graph(900,400);
$graph->SetScale("textlin");

$graph->SetBox(false);

$graph->yaxis->HideLine(false);
$graph->yaxis->HideTicks(false,false);

$graph->xgrid->Show();
$graph->xgrid->SetLineStyle("solid");
$graph->xgrid->SetColor('#e3e3e3');

// Create the line
$lineplot1 = new LinePlot($ydata);
$lineplot2 = new LinePlot($ydata2);

// Create the line
$graph->Add($lineplot1);
$graph->Add($lineplot2);

// Output line
$graph->Stroke();

?>